﻿<Serializable()>
Public Class LightContentReferece
    Public Property guid As String
    Public Property ref_text As String

    Private Class Comparer
        Implements IComparer(Of LightContentReferece)

        Public Function Compare(x As LightContentReferece, y As LightContentReferece) As Integer Implements System.Collections.Generic.IComparer(Of LightContentReferece).Compare
            If x Is Nothing AndAlso y Is Nothing Then Return 0
            If x Is Nothing Then Return -1
            If y Is Nothing Then Return 1
            Return String.Compare(x.ref_text, y.ref_text)
        End Function
    End Class

    Public Shared Function getComparer() As IComparer(Of LightContentReferece)
        Return New Comparer
    End Function


End Class
